<template>
  <div>
    <ul>
    <li v-for="item in code1" :key="item">{{item}}</li>
  </ul>
  <button @click="fn">走一走</button>
  </div>
</template>

<script>
export default {
props:['code1']
,methods:{
  fn(){
    this.$emit('zou')
  }
}
}
</script>

<style>

</style>